import { createApp } from 'vue'
import { createPinia } from 'pinia'
// // 1. 引入你需要的组件
// import { Button } from 'vant';
// 2. 引入组件样式
import 'vant/lib/index.css';

import App from './App.vue'
import router from './router'

//引用样式
import './styles/main.scss'

//持久化插件
// import persist from 'pinia-plugin-persistedstate'
import pinia from './stores';

//svg图标导入
import 'virtual:svg-icons-register'

const app = createApp(App)

app.use(createPinia())
// app.use(createPinia().use(persist))
app.use(pinia)
app.use(router)

app.mount('#app')


